<template>
    <span class="span2">我是页面1</span>
    <br>
    <!-- 路由params传参 -->
    <span class="span2">路由params传参，title：{{ params.title }}，content：{{ params.content }}</span>
</template>

<!-- js或ts -->
<script lang="ts">
export default {
    name: 'routeTransmitTest1Page1'
}
</script>

<!-- js或ts -->
<script setup lang="ts">
import { toRefs } from 'vue'
import { useRoute } from 'vue-router'
//数据
let route = useRoute()
//接收路由params参数
let { params } = toRefs(route)
</script>

<!-- 样式 -->
<style scoped></style>